<?php if( simpax_sidebar() == "right_connected" ) : ?>
<!-- connected sidebar -->

<?php get_sidebar(); ?>
<br style="clear:both; height: 0 !important;" />

</div><?php // #uber_page ?>
<?php endif; ?>

<!-- sidebar -->

<?php if( simpax_sidebar() and (is_single() or is_page()) ) : // close .onecolumn ?>
</div>
<?php endif; ?>
<?php if( simpax_sidebar() ) { get_sidebar(); echo '<br style="clear:both; height: 0 !important;" />'; } ?>

<!-- a simple bottombar -->

<?php if( simpax_bottombar() ) : ?>

<?php if( simpax_sidebar() and (is_single() or is_page()) ) : // open .onecolumn ?>
<div class="oneclumn">
<?php endif; ?>

<div id="footer">

<div id="bottombar">
<div id="navi">

<div class="navi-column">
<?php if (!function_exists('dynamic_sidebar')
	|| !dynamic_sidebar('Left') ) : ?>
	
<div class="navi-item">
<h3 class="title-navi"><?php _e('Seiten','simpax');?></h3>
<ul style="list-style-type:none;">
<?php wp_list_pages('sort_column=menu_order&depth=1&title_li='); ?>
</ul>
</div>

<div class="navi-item">
<h3 class="title-navi"><?php _e('Suche','simpax');?></h3>
<form method="get" id="searchform" action="<?php bloginfo('home'); ?>/">
	<div><input type="text" value="" name="s" id="s" />
	<input type="submit" id="searchsubmit" value="Suchen" />
	</div>
</form>
</div>

<?php endif; ?>
</div>

<div class="navi-column">
<?php if (!function_exists('dynamic_sidebar')
	|| !dynamic_sidebar('Center') ) : ?>

<div class="navi-item">
<ul>
<h3 class="title-navi">Links</h3>
<?php get_links('', '<li>', '</li>', '<br />', FALSE, 'rand', TRUE, 
TRUE, 5, TRUE); ?>
</ul>
</div>
	
<?php endif; ?>
</div>

<div class="navi-column">
<?php if (!function_exists('dynamic_sidebar')
	|| !dynamic_sidebar('Right') ) : ?>
	
<div class="navi-item">	
<h3 class="title-navi"><?php _e('Kategorien','simpax');?></h3>
<ul>
<?php wp_list_cats('sort_column=name&optioncount=1&hide_empty=1'); ?>
</ul>
</div>

<?php endif; ?>
</div>

<br style="clear:both;" />

</div>

</div>

<?php if( simpax_sidebar() and (is_single() or is_page()) ) : // close .onecolumn ?>
</div>
<?php endif; ?>


<?php endif; ?>

<?php if( !(is_single() or is_page()) ) : ?>

<br style="clear:both;" />

<!-- In the end... -->
<?php if(!simpax_footer_buttons()) : ?>
     <div class="footer-bar">
     <?php _e('Diese Seite l&auml;uft mit <a href="http://wordpress-deutschland.org">Wordpress</a> und dem Theme <a href="http://cax-theme.info/">Cax</a> vom <a href="http://cax-theme.info/">cax-team</a>','simpax');?>. <br />
	 <div class="footer-themeinfo"></div>
     <?php wp_register('',' &bull; '); ?><?php wp_loginout(); ?> &bull;
     <a href="#top"><?php _e('Beam mich hoch, Scotty!','simpax');?></a>
     </div>

<?php else : ?>
<div class="footer-bar">
	<a href="feed:<?php bloginfo('rss2_url'); ?>"><img src="<?php bloginfo('stylesheet_directory'); ?>/img/8015_rss.gif" alt="feed" /></a>
	<a href="http://wordpress-deutschland.org/"><img src="<?php bloginfo('stylesheet_directory'); ?>/img/8015_wordpress.png" alt="Wordpress" /></a>
	<a href="http://cax-theme.info/"><img src="<?php bloginfo('stylesheet_directory'); ?>/img/8015_cax.png" alt="cax" /></a>
	<a href="http://validator.w3.org/check/referer"><img src="<?php bloginfo('stylesheet_directory'); ?>/img/8015_xhtml.png" alt="XHTML" /></a>
	<?php simpax_footer_buttons_own(); ?>
</div>
 <div class="footer-themeinfo"></div>

<?php endif; ?>

</div>

<?php endif; ?>

<div id="wp_footer">
<?php simpax_countercode();
	wp_footer(); ?>
</div>

</body>
</html>
